package com.indexingsystem.boss.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * idx_theme_table_group
 * @author 
 */
public class IdxThemeTableGroup implements Serializable {
    /**
     * 主键
     */
    private Integer themeGroupId;

    /**
     * 父id，顶层为0
     */
    private Integer parentid;

    /**
     * 所有父id，逗号分割
     */
    private String arrparentid;

    /**
     * 是否存在子类，0=不存在，1=存在
     */
    private Integer child;

    /**
     * 分类名称
     */
    private String name;

    /**
     * 0=启用，-1=不启用
     */
    private Integer status;

    /**
     * 创建时间
     */
    private String createBy;

    /**
     * 创建人
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Integer getThemeGroupId() {
        return themeGroupId;
    }

    public void setThemeGroupId(Integer themeGroupId) {
        this.themeGroupId = themeGroupId;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getArrparentid() {
        return arrparentid;
    }

    public void setArrparentid(String arrparentid) {
        this.arrparentid = arrparentid;
    }

    public Integer getChild() {
        return child;
    }

    public void setChild(Integer child) {
        this.child = child;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        IdxThemeTableGroup other = (IdxThemeTableGroup) that;
        return (this.getThemeGroupId() == null ? other.getThemeGroupId() == null : this.getThemeGroupId().equals(other.getThemeGroupId()))
            && (this.getParentid() == null ? other.getParentid() == null : this.getParentid().equals(other.getParentid()))
            && (this.getArrparentid() == null ? other.getArrparentid() == null : this.getArrparentid().equals(other.getArrparentid()))
            && (this.getChild() == null ? other.getChild() == null : this.getChild().equals(other.getChild()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getThemeGroupId() == null) ? 0 : getThemeGroupId().hashCode());
        result = prime * result + ((getParentid() == null) ? 0 : getParentid().hashCode());
        result = prime * result + ((getArrparentid() == null) ? 0 : getArrparentid().hashCode());
        result = prime * result + ((getChild() == null) ? 0 : getChild().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", themeGroupId=").append(themeGroupId);
        sb.append(", parentid=").append(parentid);
        sb.append(", arrparentid=").append(arrparentid);
        sb.append(", child=").append(child);
        sb.append(", name=").append(name);
        sb.append(", status=").append(status);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}